package com.ruoyi.major.mapper;



import com.ruoyi.major.domain.StuMagor;

import java.util.List;

public interface StuMagorMapper {
    /**
     * 显示所有专业
     */
    List<StuMagor> selectMagor(StuMagor stuMagor);

    /**
     * 根据id查询专业
     */
    StuMagor selectMagorById(Long magId);

    /**
     * 根据专业名称查找
     */




    /**
     * 添加专业
     */
    int insertMagor(StuMagor stuMagor);

    StuMagor checkMajorNameUnique(String magName);

    /**
     * 修改专业
     */
    int updateMagor(StuMagor stuMagor);

    /**
     * 删除专业
     */
    int deleteMagorById(Long magId);

    /**
     * 批量删除
     */
    int deleteMagorByIds(Long[] magIds);

    List<StuMagor> selectAllMagorList();

    Long countMagor();

    List<Long> selectMagorByCourId(Long courId);
}
